//
//  DHUser.swift
//  Weibo
//
//  Created by Holfioo on 15/9/7.
//  Copyright © 2015年 Holfioo. All rights reserved.
//

import UIKit

class DHUser: NSObject {
    var id: Int = 0
    // 用户名
    var name: String?
    // 头像地址
    var profile_image_url: String?
    /// 认证类型 -1：没有认证，0，认证用户，2,3,5: 企业认证，220: 达人
    var verified: Int = 0
    /// 会员等级 1-6
    var mbrank: Int = 0
    // MARK: - 构造函数
    init(dict: [String: AnyObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    override var description: String {
        let keys = ["id", "name", "profile_image_url", "verified", "mbrank"]
        
        return dictionaryWithValuesForKeys(keys).description
    }
}
